package com.sss.springcloud.controller;


import com.sss.springcloud.common.Result;
import com.sss.springcloud.entities.Payment;
import com.sss.springcloud.service.IPaymentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.*;

import java.util.UUID;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author sss
 * @since 2020-03-05
 */
@RestController
@RequestMapping("/payment")
public class PaymentController {
    @Value("${server.port}")
    private String server_port;

    @Autowired
    private IPaymentService paymentService;



    @GetMapping("/zk")
    public Result getZk(){
        return Result.succes("zookeeper***server-port:"+server_port+ UUID.randomUUID().toString());
    }
}

